package com.ruoyi.service.impl;

import com.ruoyi.domain.TheWarningNotification;
import com.ruoyi.mapper.TheWarningNotificationMapper;
import com.ruoyi.service.TheWariningNotificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class TheWariningNotificationServiceImpl implements TheWariningNotificationService {

    @Autowired
    private TheWarningNotificationMapper theWarningNotificationMapper;

    /**
     * 获取异常内容
     *
     * @param userId 用户ID
     * @return 异常内容
     */
    @Override
    public List<TheWarningNotification> selectUserNotification(long userId) {
        return theWarningNotificationMapper.selectUserNotification(userId);
    }
}